gtk4.git
9 years agowindow: unrealize renderer before destroying GDK window
Benjamin Otte [Wed, 23 Nov 2016 07:25:42 +0000 (08:25 +0100)]
window: unrealize renderer before destroying GDK window

We need to unrealize the children manually for that to happen, but so it
goes.

The order is necessary because we want the renderer to still be alive
while children are unrealizing.

9 years agoHC: progressbar style fix
Lapo Calamandrei [Wed, 23 Nov 2016 16:25:18 +0000 (17:25 +0100)]
HC: progressbar style fix

Reset styling on the progress node when trough node has the `empty'
styleclass.

See https://bugzilla.gnome.org/show_bug.cgi?id=774695

9 years agoHC: really use radial-gradient() in place of -gtk-gradient()
Lapo Calamandrei [Wed, 23 Nov 2016 15:39:14 +0000 (16:39 +0100)]
HC: really use radial-gradient() in place of -gtk-gradient()

Regenerate the css from sass..

9 years agoAdwaita: progressbar style fix
Lapo Calamandrei [Wed, 23 Nov 2016 15:00:57 +0000 (16:00 +0100)]
Adwaita: progressbar style fix

Reset styling on the progress node when trough node has the `empty'
styleclass.

See https://bugzilla.gnome.org/show_bug.cgi?id=774695

9 years agowintab: init only after the display is assigned
Andrew Chadwick [Sun, 20 Nov 2016 01:57:07 +0000 (01:57 +0000)]
wintab: init only after the display is assigned

Only attempt to initialize Wintab after the display manager announces
that the first default display has been set. Fixes a segfault during
initialization of specific tablet drivers' wintab32.dlls. Add assertions
and verbose comments explaining this nonsense because this stuff is a
pain to have to keep fixing.

https://bugzilla.gnome.org/show_bug.cgi?id=774379

9 years agowintab tilt: Check return location for validity
Andrew Chadwick [Tue, 22 Nov 2016 10:28:40 +0000 (10:28 +0000)]
wintab tilt: Check return location for validity

https://bugzilla.gnome.org/show_bug.cgi?id=774265

9 years agoUpdated Czech translation
Marek Cernocky [Tue, 22 Nov 2016 10:57:57 +0000 (11:57 +0100)]
Updated Czech translation

9 years agowin32: Fix tilt from Wintab devices
Andrew Chadwick [Sat, 19 Nov 2016 18:34:29 +0000 (18:34 +0000)]
win32: Fix tilt from Wintab devices

Move the orientation sanity-checks into the packet decode func.
Rationale: the packet handling func may otherwise read beyond the end of
device->last_axis_data.

Also expand them to cope with my test Huion's weird reporting.

Also correct the azimuth angle to align with GDK's presentation.

Most importantly, fix annoying comment typo.

https://bugzilla.gnome.org/show_bug.cgi?id=774265

9 years agogtk/gtkprintoperation-win32.c: Fix for GTK+-4.0 API
Chun-wei Fan [Fri, 21 Oct 2016 07:26:42 +0000 (15:26 +0800)]
gtk/gtkprintoperation-win32.c: Fix for GTK+-4.0 API

We no longer have GtkPlug nor GtkWin32EmbedManifest for GTK+-4.x, and it
is not entirely clear at this point what would be the "best" replacement
for them, but this issue here prevents GTK+-3.89.x building on Windows.

As a result, this is a fast port to avoid using APIs that have been
removed for 4.x, and things seem to work properly (the print.c page
printed).

https://bugzilla.gnome.org/show_bug.cgi?id=773299

9 years ago3.89.1
Matthias Clasen [Mon, 21 Nov 2016 10:57:17 +0000 (05:57 -0500)]
3.89.1

9 years agowintab: fix skipping of odd-numbered devices
Andrew Chadwick [Sat, 19 Nov 2016 03:26:29 +0000 (03:26 +0000)]
wintab: fix skipping of odd-numbered devices

Fix a regression introduced in 4ce6d1060104e7072eec347370999bfd3fe69dc0
which causes devices with an odd-numbered zero-based index in the list
to be passed over incorrectly. This might present as yet another "device
does not send pressure" bug for ~50% of devices out there.

This commit also closes off another potential segfault for wintab_devices
lists which have an odd length.

https://bugzilla.gnome.org/show_bug.cgi?id=774699

9 years agoBump the Graphene dependency
Emmanuele Bassi [Mon, 21 Nov 2016 16:24:34 +0000 (16:24 +0000)]
Bump the Graphene dependency

The initialization macros for Point, Point3D, Size, and Rectangle have
been modified in Graphene 1.5.1 to allow their use as compound
literals.

9 years agoUse Graphene init macros for compound literals
Emmanuele Bassi [Mon, 21 Nov 2016 16:21:38 +0000 (16:21 +0000)]
Use Graphene init macros for compound literals

The Graphene init macros can now be used for compound literals, which
means we need to update our mixed uses.

9 years agoFix off by one in check for GtkRoundedBox containing a rectangle
Gustavo Noronha Silva [Thu, 17 Nov 2016 17:15:50 +0000 (15:15 -0200)]
Fix off by one in check for GtkRoundedBox containing a rectangle

When checking if a rectangle is contained by the rounded box, the code
will refuse a rectangle which is the exact size as the one backing the
rounded box, since it checks for greater or equal width and height.
Check for greater only instead.

https://bugzilla.gnome.org/show_bug.cgi?id=774114

9 years agoUpdate Hungarian translation
Balázs Meskó [Mon, 21 Nov 2016 09:35:08 +0000 (09:35 +0000)]
Update Hungarian translation

9 years agoUpdate Hungarian translation
Balázs Meskó [Mon, 21 Nov 2016 09:33:59 +0000 (09:33 +0000)]
Update Hungarian translation

9 years agoVisual Studio builds: Rename broadwayd to gtk4-broadwayd
Chun-wei Fan [Mon, 21 Nov 2016 07:51:21 +0000 (15:51 +0800)]
Visual Studio builds: Rename broadwayd to gtk4-broadwayd

We need to update the solution file and the projects that refer to
broadwayd.

9 years agogdk/win32/gdkwindow-win32.c: Fix build
Chun-wei Fan [Mon, 21 Nov 2016 07:40:28 +0000 (15:40 +0800)]
gdk/win32/gdkwindow-win32.c: Fix build

Fix the assignment of ->create_draw_context, in which an underscore is
accidently added.

9 years agobuild: Complete renaming of broadwayd to gtk4-broadwayd
Chun-wei Fan [Mon, 21 Nov 2016 07:09:35 +0000 (15:09 +0800)]
build: Complete renaming of broadwayd to gtk4-broadwayd

The parts where the Visual Studio projects are generated must also be updated
so that 'make dist' will work properly.

9 years agoUpdate for 3.89.1
Matthias Clasen [Sun, 20 Nov 2016 12:46:29 +0000 (07:46 -0500)]
Update for 3.89.1

9 years agoSome additions to the migration guide
Matthias Clasen [Sun, 20 Nov 2016 12:46:47 +0000 (07:46 -0500)]
Some additions to the migration guide

9 years agofishbowl: Fix up initial text
Matthias Clasen [Sun, 20 Nov 2016 11:12:32 +0000 (06:12 -0500)]
fishbowl: Fix up initial text

Avoid the text changing from "0 fish" to "0 icons" right
after opening the fishbowl demo.

9 years agoAPI: gdk: Remove ability to render window contents
Benjamin Otte [Sun, 20 Nov 2016 10:47:32 +0000 (11:47 +0100)]
API: gdk: Remove ability to render window contents

The functions gdk_pixbuf_get_from_window() and
gdk_cairo_set_source_window() are unreliable and depend on the windowing
system (they work great on X11 and Win32, less so on Quartz and Wayland).

With the switch to new drawing API and OpenGL, we can definitely no
longer support a generic way to snapshot windows.

People should either write windowsystem-specific code or draw their
widgets directly - like with gtk_widget_draw() - if they need to get a
rendering.

9 years agomodules: Add a check for GTK3 symbols
Benjamin Otte [Sun, 20 Nov 2016 10:44:19 +0000 (11:44 +0100)]
modules: Add a check for GTK3 symbols

This way, we can warn if GTK2 or GTK3 are linked into libgtk4.

9 years agotools: Rewrite screenshotting code for shooter
Benjamin Otte [Sun, 20 Nov 2016 10:43:09 +0000 (11:43 +0100)]
tools: Rewrite screenshotting code for shooter

Uses X directly, so bypasses both the need to query the root window and
to draw window contents.

9 years agoreftest: Make screenshot code work without GDK
Benjamin Otte [Sun, 20 Nov 2016 10:20:34 +0000 (11:20 +0100)]
reftest: Make screenshot code work without GDK

GDK does not support taking images of GDK windows.

9 years agobuild: Don't link against libgtk and libgdk
Benjamin Otte [Sun, 20 Nov 2016 10:19:32 +0000 (11:19 +0100)]
build: Don't link against libgtk and libgdk

libgdk is statically linked these days, so if you link against it, all
of its symbols will exist twice: Once in libgtk.so and once in your
binary.

9 years agotests: Remove outdated tests
Benjamin Otte [Sun, 20 Nov 2016 07:29:21 +0000 (08:29 +0100)]
tests: Remove outdated tests

The tests read a nonexisting colorprofile, try to convert stuff read
from the window into it, do things that gdk-pixbuf should test and
then aren't even integrated into the testuite.

Sheesh.

9 years agowindow: Remove unused destroy_draw_context vfunc
Benjamin Otte [Sun, 20 Nov 2016 06:27:00 +0000 (07:27 +0100)]
window: Remove unused destroy_draw_context vfunc

9 years agogdk: Make each backend have a custom GdkDrawingContext subclass
Benjamin Otte [Sun, 20 Nov 2016 06:16:32 +0000 (07:16 +0100)]
gdk: Make each backend have a custom GdkDrawingContext subclass

9 years agogtk-demo: Allow locking of icon count in fishbowl demo
Benjamin Otte [Sun, 20 Nov 2016 04:29:03 +0000 (05:29 +0100)]
gtk-demo: Allow locking of icon count in fishbowl demo

I'm not sure I'm proud of the hack to get the changing icon into the UI
file without having to write code. But it works.

9 years agocairorenderer: Record cpu time in the profiler
Benjamin Otte [Sun, 20 Nov 2016 04:28:52 +0000 (05:28 +0100)]
cairorenderer: Record cpu time in the profiler

9 years agoinspector: Redo recording list
Benjamin Otte [Sun, 20 Nov 2016 02:53:26 +0000 (03:53 +0100)]
inspector: Redo recording list

- Make the rows larger
- Display the elapsed time between renderings
- Display if it was a full or a partial redraw
- Add a toggle button to display profiler info

9 years agoinspector: Pass the renderer when recording
Benjamin Otte [Sun, 20 Nov 2016 02:52:56 +0000 (03:52 +0100)]
inspector: Pass the renderer when recording

... and collect the profiler information from the renderer.

9 years agoinspector: Record a "start" event whenever we start recording
Benjamin Otte [Sun, 20 Nov 2016 00:41:43 +0000 (01:41 +0100)]
inspector: Record a "start" event whenever we start recording

9 years agoDrop deprecated gtk_dialog_get_action_area
Matthias Clasen [Sun, 20 Nov 2016 02:18:20 +0000 (21:18 -0500)]
Drop deprecated gtk_dialog_get_action_area

Add an internal version for the few places where we still need it,
and drop it from everywhere else.

9 years agoMake unknown window types fatal
Matthias Clasen [Sat, 19 Nov 2016 23:32:11 +0000 (18:32 -0500)]
Make unknown window types fatal

This helps gcc to see that there's no point in warning about
gdk_window being used uninitialized.

9 years agorender: Refactor background drawing code
Benjamin Otte [Sat, 19 Nov 2016 20:28:18 +0000 (21:28 +0100)]
render: Refactor background drawing code

We can query the blend mode inside the paint function.

9 years agoinspector Reselect bottom row in recorder
Benjamin Otte [Sat, 19 Nov 2016 19:55:08 +0000 (20:55 +0100)]
inspector Reselect bottom row in recorder

When inserting a new recording and the bottommost row was selected,
select the newly added row. This way, you can observe the ongoing
recording.

9 years agorender: Propagate snapshot drawing to box shadows
Benjamin Otte [Sat, 19 Nov 2016 19:38:22 +0000 (20:38 +0100)]
render: Propagate snapshot drawing to box shadows

This decouples actual background drawing from shadow drawing in the
snapshot case.

We also now create seperate nodes for shadows vs for backgrounds.

9 years agocssshadows: Reengineer API
Benjamin Otte [Sat, 19 Nov 2016 19:13:54 +0000 (20:13 +0100)]
cssshadows: Reengineer API

This way we have an API to query extents per shadow and I want that in
the next patch.

9 years agosnapshot: Move GtkSnapshot declaration to gtypes.h
Benjamin Otte [Sat, 19 Nov 2016 18:58:23 +0000 (19:58 +0100)]
snapshot: Move GtkSnapshot declaration to gtypes.h

9 years agoDocument gtk_menu_place_on_monitor
Matthias Clasen [Sat, 19 Nov 2016 18:51:50 +0000 (13:51 -0500)]
Document gtk_menu_place_on_monitor

9 years agoAdd some things to the sections file
Matthias Clasen [Sat, 19 Nov 2016 18:46:13 +0000 (13:46 -0500)]
Add some things to the sections file

This makes gtk-doc happier.

9 years agoSmall documentation additions
Matthias Clasen [Sat, 19 Nov 2016 18:45:58 +0000 (13:45 -0500)]
Small documentation additions

9 years agoMore work towards a clean doc build
Matthias Clasen [Sat, 19 Nov 2016 18:45:04 +0000 (13:45 -0500)]
More work towards a clean doc build

Tell gtk-doc about more private headers.

9 years agoDon't confuse gtk-doc
Matthias Clasen [Sat, 19 Nov 2016 18:44:36 +0000 (13:44 -0500)]
Don't confuse gtk-doc

It doesn't like doc comments for non-api.

9 years agoDrop docs for no-longer-existing API
Matthias Clasen [Sat, 19 Nov 2016 18:36:08 +0000 (13:36 -0500)]
Drop docs for no-longer-existing API

Poor gtk-doc gets confused so easily...

9 years agoAdd gtk_im_context_simple_add_compose_file
Matthias Clasen [Sat, 19 Nov 2016 18:30:27 +0000 (13:30 -0500)]
Add gtk_im_context_simple_add_compose_file

9 years agoAdd a since tag
Matthias Clasen [Sat, 19 Nov 2016 18:30:02 +0000 (13:30 -0500)]
Add a since tag

9 years agodocs: Add gtk_print_job_set_source_fd
Matthias Clasen [Sat, 19 Nov 2016 18:26:49 +0000 (13:26 -0500)]
docs: Add gtk_print_job_set_source_fd

9 years agoAdd gtk_menu_place_on_monitor to the docs
Matthias Clasen [Sat, 19 Nov 2016 17:53:13 +0000 (12:53 -0500)]
Add gtk_menu_place_on_monitor to the docs

9 years agoDon't confuse gtk-doc
Matthias Clasen [Sat, 19 Nov 2016 17:39:09 +0000 (12:39 -0500)]
Don't confuse gtk-doc

Empty doc comments make gtk-doc complain about undocumented
functions, even though these functions are not supposed to
be documented in the first place.

9 years agoDocument ::snapshot vfunc
Matthias Clasen [Sat, 19 Nov 2016 17:37:19 +0000 (12:37 -0500)]
Document ::snapshot vfunc

9 years agoDrop macro wrappers for get_version functions
Matthias Clasen [Sat, 19 Nov 2016 17:27:57 +0000 (12:27 -0500)]
Drop macro wrappers for get_version functions

These are not really useful, and were added long ago
as a clutch for transitioning to the new names.

9 years agotestgtk: Stop using gtk_micro_version
Matthias Clasen [Sat, 19 Nov 2016 17:27:02 +0000 (12:27 -0500)]
testgtk: Stop using gtk_micro_version

This will be going away soon

9 years agoFix a signature mismatch
Matthias Clasen [Sat, 19 Nov 2016 17:26:40 +0000 (12:26 -0500)]
Fix a signature mismatch

The new drawingarea draw func returns void.

9 years agowidgetnode: We never need widget paths anymore
Benjamin Otte [Sat, 19 Nov 2016 17:06:50 +0000 (18:06 +0100)]
widgetnode: We never need widget paths anymore

Backwards compat is not necessary in GTK4.

9 years agoRemove once again, empty doc comments that break the docs
Matthias Clasen [Sat, 19 Nov 2016 16:54:24 +0000 (11:54 -0500)]
Remove once again, empty doc comments that break the docs

This is just more breakage from introspection ursurping doc
comments. Somebody needs to find a proper solution before this
is brought back.

9 years agoUpdated Danish translation
Ask Hjorth Larsen [Sat, 19 Nov 2016 15:29:25 +0000 (16:29 +0100)]
Updated Danish translation

9 years agoReduce the text shadow warnings
Matthias Clasen [Sat, 19 Nov 2016 13:05:42 +0000 (08:05 -0500)]
Reduce the text shadow warnings

They make it hard to see other useful information.

9 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sat, 19 Nov 2016 12:15:59 +0000 (12:15 +0000)]
Update Kazakh translation
(cherry picked from commit 4bc2904daea70128717e6713bec6c7f8d162d12f)

9 years agorender: Compute extents correctly
Benjamin Otte [Sat, 19 Nov 2016 02:15:51 +0000 (03:15 +0100)]
render: Compute extents correctly

I multiplied matrices the wrong way. Again.

9 years agotests: Remove styleexamples test
Benjamin Otte [Fri, 18 Nov 2016 23:28:53 +0000 (00:28 +0100)]
tests: Remove styleexamples test

It's so outdated it doesn't even do anything useful anymore.

So I'll just assume nobody uses it.

9 years agoprogressbar: add empty and full classes on trough based on fill-level
Simon Steinbeiss [Fri, 18 Nov 2016 22:43:09 +0000 (23:43 +0100)]
progressbar: add empty and full classes on trough based on fill-level

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774695

9 years agotests: Use new drawing area APIs in testcairo
Benjamin Otte [Fri, 18 Nov 2016 21:41:15 +0000 (22:41 +0100)]
tests: Use new drawing area APIs in testcairo

9 years agotests: Use drawing area in testellipsise
Benjamin Otte [Fri, 18 Nov 2016 21:37:41 +0000 (22:37 +0100)]
tests: Use drawing area in testellipsise

9 years agotests: Use new drawing area APIs
Benjamin Otte [Fri, 18 Nov 2016 21:27:02 +0000 (22:27 +0100)]
tests: Use new drawing area APIs

9 years agoinspector: Show render node properties
Matthias Clasen [Sat, 19 Nov 2016 01:59:10 +0000 (20:59 -0500)]
inspector: Show render node properties

9 years agoDocument newly supported 3d transforms in CSS
Matthias Clasen [Sat, 19 Nov 2016 00:34:02 +0000 (19:34 -0500)]
Document newly supported 3d transforms in CSS

9 years agoMore docs cleanup
Matthias Clasen [Fri, 18 Nov 2016 23:54:35 +0000 (18:54 -0500)]
More docs cleanup

9 years agocsstransform: Handle matrix3d()
Benjamin Otte [Fri, 18 Nov 2016 20:43:18 +0000 (21:43 +0100)]
csstransform: Handle matrix3d()

9 years agocsstransform: Implement 3D scale and transform matrices
Benjamin Otte [Fri, 18 Nov 2016 20:02:52 +0000 (21:02 +0100)]
csstransform: Implement 3D scale and transform matrices

9 years agocsstransforms: Parse 3D rotations
Benjamin Otte [Fri, 18 Nov 2016 19:21:06 +0000 (20:21 +0100)]
csstransforms: Parse 3D rotations

9 years agocsstransform: Convert to use graphene_matrix_t
Benjamin Otte [Fri, 18 Nov 2016 15:01:56 +0000 (16:01 +0100)]
csstransform: Convert to use graphene_matrix_t

Pre-work to use 3D-transforms.

9 years agotests: Use a drawing area in motion-compression example
Benjamin Otte [Fri, 18 Nov 2016 14:09:36 +0000 (15:09 +0100)]
tests: Use a drawing area in motion-compression example

9 years agotests: Use a drawing area in animated-resizing
Benjamin Otte [Fri, 18 Nov 2016 14:02:49 +0000 (15:02 +0100)]
tests: Use a drawing area in animated-resizing

9 years agoWork towards a clean docs build
Matthias Clasen [Fri, 18 Nov 2016 19:43:34 +0000 (14:43 -0500)]
Work towards a clean docs build

Remove various no-longer-existing functions from the sections
file, and exclude more private headers, etc.

9 years agoRename broadwayd to gtk4-broadwayd
Matthias Clasen [Fri, 18 Nov 2016 18:40:37 +0000 (13:40 -0500)]
Rename broadwayd to gtk4-broadwayd

This was the last unprefixed binary, and it was causing file
conflicts between gtk3 and gtk4.

9 years agogdkwindow: Allow native subsurface for all parents
Olivier Fourdan [Tue, 15 Nov 2016 13:49:03 +0000 (14:49 +0100)]
gdkwindow: Allow native subsurface for all parents

Under Wayland, a subsurface can have another surface as parent, but
gdk would not allow native windows if the parent is not the root window.

Allow native subsurface for all parent under Wayland, not just for the
root window.

https://bugzilla.gnome.org/show_bug.cgi?id=774475

9 years agowayland: Keep last scale factor on surfaces after it left all outputs
Carlos Garnacho [Tue, 15 Nov 2016 14:07:39 +0000 (15:07 +0100)]
wayland: Keep last scale factor on surfaces after it left all outputs

This can be triggered on workspace switches, and on hidpi results in
the scale factor being reset to 1 while the window is not in the
current workspace.

https://bugzilla.gnome.org/show_bug.cgi?id=774476

9 years agodocs: Name the 3.90 index properly
Matthias Clasen [Fri, 18 Nov 2016 13:14:23 +0000 (08:14 -0500)]
docs: Name the 3.90 index properly

9 years agodocs: Ignore gtksnapshotprivate.h
Matthias Clasen [Fri, 18 Nov 2016 13:10:01 +0000 (08:10 -0500)]
docs: Ignore gtksnapshotprivate.h

9 years agosnapshot: Name api parameters consistently
Matthias Clasen [Fri, 18 Nov 2016 12:57:10 +0000 (07:57 -0500)]
snapshot: Name api parameters consistently

gtk-doc gets upset otherwise.

9 years agoDocument GtkSnapshot
Matthias Clasen [Fri, 18 Nov 2016 11:53:57 +0000 (06:53 -0500)]
Document GtkSnapshot

This is just some initial documentation, more detail needed.

9 years agoAdd some drawing information the migration guide
Matthias Clasen [Fri, 18 Nov 2016 12:42:49 +0000 (07:42 -0500)]
Add some drawing information the migration guide

Mention snapshot(), and the new GtkDrawingArea API.

9 years agodocs: Add GtkDrawingAreaDrawFunc
Matthias Clasen [Fri, 18 Nov 2016 11:09:46 +0000 (06:09 -0500)]
docs: Add GtkDrawingAreaDrawFunc

9 years agotests: Use a drawing area in testpopup
Benjamin Otte [Fri, 18 Nov 2016 06:24:31 +0000 (07:24 +0100)]
tests: Use a drawing area in testpopup

9 years agotests: Make testtooltips not use the draw signal
Benjamin Otte [Fri, 18 Nov 2016 06:22:02 +0000 (07:22 +0100)]
tests: Make testtooltips not use the draw signal

9 years agotests: Produce load without waiting for draw signal
Benjamin Otte [Fri, 18 Nov 2016 06:15:12 +0000 (07:15 +0100)]
tests: Produce load without waiting for draw signal

9 years agotests: Use drawing area instead of draw signal
Benjamin Otte [Fri, 18 Nov 2016 06:14:28 +0000 (07:14 +0100)]
tests: Use drawing area instead of draw signal

9 years agotestsuite: Don't use draw signal, use a drawing area instead
Benjamin Otte [Fri, 18 Nov 2016 05:37:33 +0000 (06:37 +0100)]
testsuite: Don't use draw signal, use a drawing area instead

9 years agoprintunixdialog: Use new drawing area API
Benjamin Otte [Fri, 18 Nov 2016 05:32:27 +0000 (06:32 +0100)]
printunixdialog: Use new drawing area API

9 years agocoloreditor: Don't draw a background on boxes
Benjamin Otte [Fri, 18 Nov 2016 05:19:27 +0000 (06:19 +0100)]
coloreditor: Don't draw a background on boxes

Boxes know how to draw backgrounds these days.

9 years agogtk-demo: Update drawing area usage to new APIs
Benjamin Otte [Fri, 18 Nov 2016 05:16:38 +0000 (06:16 +0100)]
gtk-demo: Update drawing area usage to new APIs

A few demos are broken because they do input on drawing areas.

9 years agodrawingarea: Add gtk_drawing_area_set_draw_func()
Benjamin Otte [Fri, 18 Nov 2016 04:45:36 +0000 (05:45 +0100)]
drawingarea: Add gtk_drawing_area_set_draw_func()

9 years agodrawingarea: Add content-width and content-height properties
Benjamin Otte [Fri, 18 Nov 2016 03:00:02 +0000 (04:00 +0100)]
drawingarea: Add content-width and content-height properties

People should use these instead of gtk_widget_set_size_request().

9 years agodrawingarea: Clean up
Benjamin Otte [Fri, 18 Nov 2016 01:35:05 +0000 (02:35 +0100)]
drawingarea: Clean up

No need to send configure events anymore and this should be a no-window
widget.

9 years agogsk: Don't leak texture surfaces
Matthias Clasen [Fri, 18 Nov 2016 01:29:07 +0000 (20:29 -0500)]
gsk: Don't leak texture surfaces

gsk_texture_download returns a reference.

9 years agostyle context: Don't leak a widget path
Matthias Clasen [Fri, 18 Nov 2016 01:22:42 +0000 (20:22 -0500)]
style context: Don't leak a widget path

Found by valgrind.